package com.maisuiit.basics;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * @Description:
 * @Author: zhangcc
 * @CreateTime: 2022-10-25
 */
public class IOTest3 {
    public static void main(String []args){
        try{
            //输入流，从键盘接收数
            InputStreamReader isr=new InputStreamReader(System.in);
            BufferedReader br=new BufferedReader(isr);
            System.out.println("请输入1,2,3,4,5,6,7");
            String a1=br.readLine();
            int c=Integer.decode(a1);
            switch(c){
                case 1:
                    System.out.println("星期一");
                    break;
                case 2:
                    System.out.println("星期二");
                    break;
                case 3:
                    System.out.println("星期三");
                    break;
                case 4:
                    System.out.println("星期四");
                    break;
                case 5:
                    System.out.println("星期五");
                    break;
                case 6:
                    System.out.println("星期六");
                    break;
                case 7:
                    System.out.println("星期日");
                    break;
                default:
                    System.out.println("输入错误");
                    break;
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
